package 文件操作;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:文件重命名,aaa.txt文件要在idea所在的路径上创建
 * User: lenovo
 * Date: 2022-10-16
 * Time: 16:35
 */
public class demo7 {
    public static void main(String[] args) {
        File srcf = new File("./aaa.txt");
        File desf = new File("./bbb.txt");
        srcf.renameTo(desf);
    }
}
